<template>
  <el-container style="height: 725px; border: 1px solid #eee">
    <el-aside width="220px" style="background-color: rgb(238, 241, 246)">
      <el-menu>
        <el-submenu index="1">
          <template slot="title"><i class="el-icon-trophy"></i>校内比赛成绩公示</template>
          <el-menu-item-group>
            <router-link to="/User/GamePublicity">
            <el-menu-item index="1-1">公示</el-menu-item>
            </router-link>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="2">
          <template slot="title"><i class="el-icon-menu"></i>其他加分上传</template>
          <el-menu-item-group>
            <router-link to="/User/ElseUploading">
            <el-menu-item index="2-1">上传审批</el-menu-item>
            </router-link>
            <router-link to="/User/ElsePublicity">
            <el-menu-item index="2-2">公示</el-menu-item>
            </router-link>
            <router-link to="/User/ElseUploadingPublicity">
            <el-menu-item index="2-3">已上传名单</el-menu-item>
            </router-link>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="3">
          <template slot="title"><i class="el-icon-message"></i>其他比赛成绩录入</template>
          <el-menu-item-group>
            <router-link to="/User/GameUploading">
            <el-menu-item index="3-1">上传审批</el-menu-item>
            </router-link>
            <router-link to="/User/ElseGamePublicity">
            <el-menu-item index="3-2">公示</el-menu-item>
            </router-link>
            <router-link to="/User/GameUploadingPublicity">
            <el-menu-item index="3-3">已上传名单</el-menu-item>
            </router-link>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-aside>

    <el-container>
      <el-header style="text-align: right; font-size: 15px">
        <span style="margin-right: 500px; font-size: 30px;color: red "> 岭 南 师 范 学 院 </span>
        <el-dropdown>
          <i class="el-icon-setting" style="margin-right: 15px"></i>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>个人信息</el-dropdown-item>
            <router-link to="/">
              <el-dropdown-item>退出登录</el-dropdown-item>
            </router-link>
          </el-dropdown-menu>
        </el-dropdown>
        <span>{{ info.userName }}</span>
      </el-header>

      <el-main style="padding: 0; margin: 0">
      <router-view/>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import axios from "axios";

export default {
  name: "UserMenu",
  data() {
    return {
      info:{
        userName: '李四'
      }
    }
  },
  //
  // mounted() {
  //   axios.post("/api/uploading/setUp").then((res)=> {
  //     this.info = res.data
  //   })
  // }
}
</script>

<style scoped>

.el-header {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}

a{
  text-decoration: none;
}


</style>
